#import "Day.h"


@implementation Day
@synthesize which, temp, wind, image, description;

-(void) setWhich:(NSString *) _day{
	NSArray *parts = [_day componentsSeparatedByString: @" "]; 
	if ([parts count] != 2) {
		return ;
	}
	which = [[parts objectAtIndex: 0] retain];
	description = [[parts objectAtIndex: 1] retain];
}

-(NSString *) toString{
	return [[NSString alloc] initWithFormat:@"%@  %@ %@", [self which], [self description], [self temp]]; 
}

-(void) dealloc{
	[which release];
	[temp release];
	[wind release];
	[image release];
	[description release];
	[super dealloc];
}
@end
